package com.zhu.salesmanagement.models;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 新增门店数据项
 */

public class AddedStoreItemInfo implements Parcelable{

	public long id = -1;
    public String mName;
    public String mAddress;
    public String mMobile;
    public String mContact;
    public String mType;
    public String mSp1;
    public String mSp2;
    public String mSp3;
    public String mSp4;
    public String mSp5;
    public String mSp6;
    public int mSp7;
    public int mSp8;
    public int mSp9;
    public int mSp10;
    public int mSp11;
    public int mSp12;
    public int mSp13;
    public String mSp14;

    public void copyFrom(AddedStoreItemInfo info){
        id = info.id;
        mName = info.mName;
        mAddress = info.mAddress;
        mMobile = info.mMobile;
        mContact = info.mContact;
        mType = info.mType;
        mSp1 = info.mSp1;
        mSp2 = info.mSp2;
        mSp3 = info.mSp3;
        mSp4 = info.mSp4;
        mSp5 = info.mSp5;
        mSp6 = info.mSp6;
        mSp7 = info.mSp7;
        mSp8 = info.mSp8;
        mSp9 = info.mSp9;
        mSp10 = info.mSp10;
        mSp11 = info.mSp11;
        mSp12 = info.mSp12;
        mSp13 = info.mSp13;
        mSp14 = info.mSp14;
    }

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public void writeToParcel(Parcel arg0, int arg1) {
		// TODO Auto-generated method stub
		arg0.writeLong(id);
		arg0.writeString(mName);
		arg0.writeString(mAddress);
		arg0.writeString(mMobile);
		arg0.writeString(mContact);
		arg0.writeString(mType);
		arg0.writeString(mSp1);
		arg0.writeString(mSp2);
		arg0.writeString(mSp3);
		arg0.writeString(mSp4);
		arg0.writeString(mSp5);
		arg0.writeString(mSp6);
		arg0.writeInt(mSp7);
		arg0.writeInt(mSp8);
		arg0.writeInt(mSp9);
		arg0.writeInt(mSp10);
		arg0.writeInt(mSp11);
		arg0.writeInt(mSp12);
		arg0.writeInt(mSp13);
		arg0.writeString(mSp14);

	}

	public static final Parcelable.Creator<AddedStoreItemInfo> CREATOR = new Creator<AddedStoreItemInfo>() {  
        @Override  
        public AddedStoreItemInfo createFromParcel(Parcel source) {  
        	AddedStoreItemInfo info = new AddedStoreItemInfo();  
            info.id = source.readLong();
        	info.mName = source.readString();  
        	info.mAddress = source.readString();
        	info.mMobile = source.readString();
        	info.mContact = source.readString();
        	info.mType = source.readString();
        	info.mSp1 = source.readString();
        	info.mSp2 = source.readString();
        	info.mSp3 = source.readString();
        	info.mSp4 = source.readString();
        	info.mSp5 = source.readString();
        	info.mSp6 = source.readString();
        	info.mSp7 = source.readInt();
        	info.mSp8 = source.readInt();
        	info.mSp9 = source.readInt();
        	info.mSp10 = source.readInt();
        	info.mSp11 = source.readInt();
        	info.mSp12 = source.readInt();
        	info.mSp13 = source.readInt();
        	info.mSp14 = source.readString();

            return info;  
        }

		@Override
		public AddedStoreItemInfo[] newArray(int arg0) {
			return new AddedStoreItemInfo[arg0];
		}  
    };  
    
}
